package databaseVersionControl.domain.db;

public abstract class DBComponent {

	private String _name;

	public DBComponent(String name) {
		this.setName(name);
	}

	public String getName() {
		return _name;
	}

	private void setName(String name) {
		if (name == null || name.trim().isEmpty()) throw new IllegalArgumentException("Name must be defined");
		this._name = name.toUpperCase();
	}
}